# -*- coding: utf-8 -*-
# Author: xiantingDeng
# File: general.py
# Time: 16:04

from bin.utils.read_util import ReadFileData
from bin.utils.tool_util import BasePage

transition_page, transition_name = ReadFileData.piece_together_element("transition")


class TransitionPage(BasePage):
    name = transition_name

    def load_android(self):
        self.allow_but = self.get_locator(transition_page.get("去允许按钮"))
        self.jurisdiction_noe_but = self.get_locator(transition_page.get("权限1允许按钮"))
        self.jurisdiction_two_but = self.get_locator(transition_page.get("权限2允许按钮"))
        self.set_but = self.get_locator(transition_page.get("去设置按钮"))
        self.upward_navigation_but = self.get_locator(transition_page.get("向上导航按钮"))
        self.my_but = self.get_locator(transition_page.get("我的"))
        self.agreed_continue_but = self.get_locator(transition_page.get("同意并继续按钮"))
